package com.zheng.damo01;

import java.io.File;
import java.io.IOException;

public class FileTest {
    public static void main(String[] args) throws IOException {
        File file=new File("D:\\Java\\File判断文件\\aaa");
        File file1=new File("D:\\Java\\File判断文件\\aaa\\a.txt");
        System.out.println(file.exists());
        System.out.println(file.getName());
        System.out.println(file.lastModified());
        File[] files = file.listFiles();
        for (File file2 : files) {
            System.out.println(file2);
        }
        file1.createNewFile();
    }
}
